// file:api.js
// 1、导入axios以及拦截器
import service from './request'
export const typeTemplateListApi = (data) => {
    return service({
        url: '/manage/typeTemplate/list',
        method: 'post',
        data
    })
};
export const typeTemplateListAllApi = () => {
    return service({
        url: '/manage/typeTemplate/listAll',
        method: 'post',
    })
};
export const brandListApi = () => {
    return service({
        url: '/manage/typeTemplate/getBrandList',
        method: 'post',
    })
};
export const specIdsListApi = () => {
    return service({
        url: '/manage/typeTemplate/getSpecIdsList',
        method: 'post',
    })
};
export const saveApi = (data) => {
    return service({
        url: '/manage/typeTemplate/save',
        method: 'post',
        data
    })
};
export const delByIdApi = (id) => {
    return service({
        url: '/manage/typeTemplate/delById?id='+id,
        method: 'post',
    })
};
export const updateApi = (data) => {
    return service({
        url: '/manage/typeTemplate/updateById',
        method: 'post',
        data
    })
};
